home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
SuperHack
/
SuperHack CD.bin
/
SCRIPTZ
/
AUTOGET.ZIP
/
autoget.txt
Wrap
Text File
|
1997-03-02
|
2KB
|
46 lines
Auto Wav/Mid Getter v1.1
---------------------
One of the more common things I'm asked about scripting is how to make
a script automatically get a sound when it's played. Well, here ya go,
so STOP ASKING!!! =) There's more to this than just that tho, so take
a look and let me know whatcha think.
How This Works: What this will do, is whenever somebody plays a sound
in the channel, it will ask them for the sound. IE: Say, for instance,
I played a sound in the channel and you were running this script. When
I play the sound, you will automatically say:
<yournick> !unsane sound.wav AutoGet by unsane!
Or whoever played the sound.
Required: mIRC 4.52+
Optional: .Wav / .Mid files to play
Fixes: Changed it so that it actually shows the filename =)
Copyright: 1997 unsane and AiLe Productions. All rights reserved.
SHOUT! outs: ^|eXE|^, aLiEn1
Contacting unsane: DALNet (irc.dal.net) in #mirc_scripts
[Remote/Commands]
#autosoundget enabled
1:SOUND:/msg $chan ! $+ $nick $nopath($parm2) AutoGet by unsane!
#autosoundget end
[Remote/Events]
1:ON FILERCVD:*.mid: { inc %midi.total 1 }
1:ON FILERCVD:*.wav: { inc %wav.total 1 }
[Popups/Channel]
unsane's addons
.Sound AutoGet Control
..Enable AutoGet:/.enable #autosoundget
..Disable AutoGet:/.disable #autosoundget
..View Midi Gets: {
if (%midi.total = $null) { set %midi.total 0 }
//echo -a 3 *** Total Midi Gets: %midi.total
}
..View Wav Gets: {
if (%wav.total = $null) { set %wav.total 0 }
//echo -a 3 *** Total Wav Gets: %wav.total
}